package xinge

import (
	"git.oschina.net/kyugao/gyjson"
)

type Config struct {
	AccessId  string `json:"AccessId"`
	AccessKey string `json:"accessKey"`
	SecretKey string `json:"SecretKey"`
}

var (
	config *Config
	client *Client
)

func init() {
	config = &Config{}

	err := gyjson.FromFile("./conf/xinge.json", config)
	if err != nil {
		panic(err)
	} else {
		client = NewClient()
	}
}
